package com.onec.service.customer.dao.merchant;

import com.onec.service.api.dao.BaseRepository;
import com.onec.service.customer.entity.merchant.MerchantAccount;
import org.springframework.data.repository.RepositoryDefinition;

/**
 * @author ONEC
 */
@RepositoryDefinition(domainClass = MerchantAccount.class, idClass = Long.class)
public interface MerchantAccountRepository extends BaseRepository<MerchantAccount, Long> {

    MerchantAccount findByMerchantId(Long merchantId);

    MerchantAccount findByMerchantIdAndBusinessNo(Long merchantId, String businessNo);
}
